package com.ithema.mArrayList;

import com.ithema.domain.Student;

import java.util.ArrayList;

public class MyArrayList {
    public static void main(String[] args) {
       /* Student []arr=new Student[2];
        Student stu=new Student("zhangsan",23);
        Student stu1=new Student("lisi",25);
        arr[0] = stu;
        arr[1] = stu1;
        for (int i = 0; i < arr.length; i++) {
            Student student = arr[i];
            System.out.println(student);
        }*/
        ArrayList<Object> list = new ArrayList<>();
        list.add(true);
        list.add("xiaoming");
        System.out.println(list);

    }
}
